import request from "@/utils/request";
import { stringify } from "qs";
// 商品库存列表
export async function getInventoryTotalList(params) {
	return request(`/new-wms/inventory/total-inventory?${stringify(params)}`, { loading: true });
}
//调仓
export async function inventoryAllocation(params) {
	return request(`/new-wms/inventory/inventory-allocation`, {
		method: "post",
		data: params,

		loading: true
	});
}
//设置发货仓安全库存
export async function inventoryWarnValue(params) {
	return request(`/new-wms/inventory/warn-value`, {
		method: "post",
		data: params,

		loading: true
	});
}
//手动校验修改库存
export async function inventoryChange(params) {
	return request(`/new-wms/inventory/inventory-change`, {
		method: "post",
		data: params,

		loading: true
	});
}
// 销售锁定数
export async function inventorySalesLockList(params) {
	return request(`/new-wms/inventory/sales-lock-list`, {
		method: "post",
		data: params,
		loading: true
	});
}

// 仓库列表
export async function getWarehouseList(params) {
	return request(`/new-wms/inventory/warehouse-list`, {
		method: "post",
		data: params,
		loading: true
	});
}
